package com.chrissy.music.system.service;

import com.chrissy.music.common.request.SysCaptchaRequest;
import com.chrissy.music.common.response.SysCaptchaResponse;

/**
 * @author Johnson
 */
public interface SysCaptchaService {

    /**
     * 生成验证码
     * @return SysCaptchaResponse
     */
    SysCaptchaResponse generate();

    /**
     * 生成验证码
     * @return SysCaptchaResponse
     */
    boolean validate(SysCaptchaRequest sysCaptchaRequest);


}
